package com.csist.service.impl;

import com.csist.pojo.Announcement;
import com.csist.mapper.AnnouncementMapper;
import com.csist.service.IAnnouncementService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 公告 服务实现类
 * </p>
 *
 * @author wy
 * @since 2021-12-01
 */
@Service
public class AnnouncementServiceImpl extends ServiceImpl<AnnouncementMapper, Announcement> implements IAnnouncementService {

    @Autowired
    private AnnouncementMapper mapper;
    @Override
    public List<Announcement> getAnnouncementByPageIndex(int pageIndex, int pageNum) {
        return mapper.getAnnouncementByPageIndex(pageIndex,pageNum);
    }
}
